package com.ruoyi.merchant.shopverification.domain;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 企业认证响应结果
 * 
 * @author zzr
 * @date 2025-09-14
 */
public class EnterpriseVerificationResponse {
    
    /** 响应状态码 */
    private Integer code;
    
    /** 响应消息 */
    @JsonProperty("msg")
    private String msg;
    
    /** 是否成功 */
    private Boolean success;
    
    /** 认证结果数据 */
    private VerificationData data;
    
    /** 任务编号 */
    @JsonProperty("taskNo")
    private String taskNo;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public VerificationData getData() {
        return data;
    }

    public void setData(VerificationData data) {
        this.data = data;
    }

    public String getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    @Override
    public String toString() {
        return "EnterpriseVerificationResponse{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", success=" + success +
                ", data=" + data +
                ", taskNo='" + taskNo + '\'' +
                '}';
    }

    /**
     * 认证数据内部类
     */
    public static class VerificationData {
        
        /** 统一社会信用代码验证结果 */
        @JsonProperty("creditNo")
        private Boolean creditNo;
        
        /** 企业名称验证结果 */
        @JsonProperty("companyName")
        private Boolean companyName;
        
        /** 法定代表人验证结果 */
        @JsonProperty("legalPerson")
        private Boolean legalPerson;

        public Boolean getCreditNo() {
            return creditNo;
        }

        public void setCreditNo(Boolean creditNo) {
            this.creditNo = creditNo;
        }

        public Boolean getCompanyName() {
            return companyName;
        }

        public void setCompanyName(Boolean companyName) {
            this.companyName = companyName;
        }

        public Boolean getLegalPerson() {
            return legalPerson;
        }

        public void setLegalPerson(Boolean legalPerson) {
            this.legalPerson = legalPerson;
        }

        @Override
        public String toString() {
            return "VerificationData{" +
                    "creditNo=" + creditNo +
                    ", companyName=" + companyName +
                    ", legalPerson=" + legalPerson +
                    '}';
        }
    }
}
